// 商品部分的
import { DragRule } from './types'
const goodsModel: Array<DragRule> = [
  {
    type: 'whiteSpace',
    name: '空白',
    roles: ['height'],
    border: 'normal',
    models: [
      {
        label: '背景颜色',
        model: 'background',
        bind: 'background'
      }
    ],
    data: {
      height: 20
    }
  },
  {
    type: 'goodsCategoryFunc',
    name: '分类',
    roles: [],
    models: [
      {
        label: '标题颜色',
        model: 'background',
        bind: 'titleColor'
      },
      {
        label: '标题选中颜色',
        model: 'background',
        bind: 'activeTColor'
      },
      {
        label: '划线颜色',
        model: 'background',
        bind: 'lineColor'
      },
      {
        label: '分类',
        model: 'goods-category-func'
      }
    ],
    border: 'normal',
    data: {
      category: [
        {
          title: '分类1',
          classifyId: '',
          classifyStyle: 1
        },
        {
          title: '分类2',
          classifyId: '',
          classifyStyle: 1
        },
        {
          title: '分类3',
          classifyId: '',
          classifyStyle: 1
        },
        {
          title: '分类4',
          classifyId: '',
          classifyStyle: 1
        }
      ],
      titleColor: '#7D7D7D',
      activeTColor: '#000000',
      lineColor: '#FCC300'
    }
  },
  {
    type: 'carousel',
    name: '轮播图',
    roles: ['height', 'round', 'swiper-model'],
    models: [
      {
        label: '图片',
        model: 'mix-model'
      }
    ],
    border: 'normal',
    data: {
      list: [
        {
          img: 'https://lili-system.oss-cn-beijing.aliyuncs.com/img.png',
          url: ''
        },
        {
          img: 'https://lili-system.oss-cn-beijing.aliyuncs.com/img.png',
          url: ''
        },
        {
          img: 'https://lili-system.oss-cn-beijing.aliyuncs.com/img.png',
          url: ''
        }
      ],
      height: 200,
      loop: true,
      autoPlay: 3
    }
  }
  // {
  //   type: 'funcListOne',
  //   name: '列表',
  //   roles: [],
  //   models: [
  //     {
  //       label: '列表',
  //       model: 'func-list-one'
  //     }
  //   ],
  //   border: 'normal',
  //   data: {
  //     listType: 'one',
  //     functionCode: ''
  //   }
  // }
]
// 基本组件
export default goodsModel
